﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="Note.aspx.cs" Inherits="NoteSystem.Note" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="kindeditor/themes/default/default.css" rel="stylesheet" />
    <link href="kindeditor/plugins/code/prettify.css" rel="stylesheet" />
    <script src="kindeditor/kindeditor-all-min.js"></script>
    <script src="kindeditor/lang/zh-CN.js"></script>
    <script src="kindeditor/plugins/code/prettify.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="box_right col-lg-9 ">
        <div class="segment left">
            <i class=" glyphicon glyphicon-book left"></i>
            <h3 class="left">发布日志<br>
                <span>管理这个设备及其传感器</span>
            </h3>
        </div>
        <div class="clear"></div>
        <!--发布日志-->
        <div id="rizhi_box" class="left" style="padding-left: 30px; padding-top: 10px;">
            <div method="post" action="/" role="form" autocomplete="on">
                <div class="my-group" id="gruop2">
                    <span class="left"><mark>*</mark>日志标题</span>
                    <asp:TextBox ID="txtTitle" CssClass="form-control put3" required placeholder="请输入标题" runat="server"></asp:TextBox>
                </div>

                <div class="my-group" id="group2">
                    <span class="left"><mark>*</mark>日志内容</span>
                    <textarea type="text" runat="server" id="txtDetail" class="form-control put3 put4" placeholder="请输入内容">            
             </textarea>
                </div>

                <div class="form-actions">
                    <asp:Button ID="btnPublic" CssClass="btn-primary btn" runat="server" Text="确认" OnClick="btnPublic_Click" />
                </div>
            </div>
        </div>
    </div>
    <script>
        KindEditor.ready(function (K) {
            var editor1 = K.create('#ContentPlaceHolder1_txtDetail', {
                cssPath: '/kindeditor/plugins/code/prettify.css',
                uploadJson: '/kindeditor/asp.net/upload_json.ashx',
                fileManagerJson: '/kindeditor/asp.net/file_manager_json.ashx',
                allowFileManager: true,
                afterCreate: function () {
                    var self = this;
                    K.ctrl(document, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                }
            });
            prettyPrint();
        });
    </script>
</asp:Content>
